package src;

//Import Files

import views.FirstFrame;
import javax.swing.UIManager;
import utils.IDE.IDEUtils;
import utils.workspace.WorkspaceUtils;
import views.SplashFrame;


/**
 *
 * @author Juan Carlos García del Canto
 */
public class YourJava {


    private static String currentIDE = "";
    private static String workspace = "";
    
    public static void main(String[] args) {
   
        try {
            for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (Exception e) {


        }
        
       SplashFrame fr = new SplashFrame(); //Only a simple advert about yourJavaProject
        
        if(!IDEUtils.checkYourEclipse()){
         
            currentIDE = IDEUtils.checkCurrentIDE();
            workspace = WorkspaceUtils.readWorkspaceFromConfig(currentIDE,System.getProperty("os.name"));
            initFrame(workspace); // Initialize Components
            
        }else{
            
            workspace = WorkspaceUtils.readWorkspaceFromConfig("YourEclipse",System.getProperty("os.name"));
            initFrame(workspace);
            
        }
       
        
    }
    
    
    /**
     * This method initialize the frame and the workspace
     * 
     * @return void
     */
    
    public static void initFrame(String workspace){
        
        
           FirstFrame wnd = new FirstFrame(workspace);


    }
    
   
    
}
